Use ui_puts and .to_yaml for output.