You can create a file ‘~/xploralab.txt’ and open it in file operation ‘a+’ mode. Then keep on pasting this below line where every you want to debug values.
[code language=”ruby”]
File.open(‘~/xploralab.txt’, ‘a+’) {|f| [f.write("\n This is a Task \n"), f.write(obj.something)] }
[/code]