The story
Used since approximately 1935; from a shortening of the given name Reuben. It originated as a cry used by circus workers, possibly because of the connotations of the name Reuben as belonging to someone living in the rural USA.
Etymology from Wiktionary, CC BY-SA 4.0.