Ruby - Dump local and instance variables