If you are just outputing numbers and strings and nil, then you can just put

>   fs.puts "$year = #{$year}"

fs.puts "$year = #{$year.inspect}"