Use \r
(carriage return) to move the cursor at the start of the line:
data = %w[this is some data]
data.each { |s|
sleep(0.5)
print "\r%-20s" % s # `print` instead of `put` to avoid newline.
# Additional spaces to overwrite remaining characters of previous output
}
puts
See Demo.