x = 42 y = "string" x, y = swap x, y puts x # prints string puts y # prints 42