Use Kernel.warn instead of puts