change the order: placing if after puts, and you can drop then and end.
x = 256 puts "x equals 256" if x == 256