It means that whatever connection print is outputting to is no longer connected. Presumably the program began as input to some other program:
% ruby_program | another_program
What’s happened is that another_program
has exited sometime before the print
in question.