Improving 'puts' snippets