Ruby template updated for debugging