Replace p expression with puts