Use Rails logger instead of puts