Fix bug in 'vars.rb'

We need to return value of 'r' instead of value of previous evaluation.