Proc.new{|statement| puts "#{statement}: #{eval(statement)}"}.call(値を確認したい式)
irb(main):001:0> hoge = {a: 1}
irb(main):002:0> Proc.new{|statement| puts "#{statement}: #{eval(statement)}"}.call("hoge[:a]")
hoge[:a]: 1
puts "hoge[:a]: #{hoge[:a]}"
でもいいんだけど、毎回2回コピペするのが面倒なので1度で済むように書きました