rube, in this case, is short for personal name Reuben applied to suggest the figure of a farmer or rustic; a country bumpkin -- this is first attested in 1804.

hey, Rube!, a rallying call or a cry for help used by circus people dates to 1884.