(Tomb Ravine isn't a spell.)
When Tomb Ravine enters the battlefield, sacrifice it unless you pay 2 life.
Sacrifice a land: You gain 1 life.
, Pay 1 life, Sacrifice Tomb Ravine: Search your library for a Swamp or Mountain card and put it onto the battlefield, then shuffle your library.