"to hiss or deride," 1920, shortened and altered variant of raspberry (q.v.) in its rhyming slang sense. Related: Razzed; razzing. As a noun, in to give the razz, from 1919.
Slang definitions & phrases for razz
razz
verb
To insult and ridicule; needle, ride: Is there ever any razzing about the fact that you report to your wife?
[1920+; fr raspberry; found in the form razoo by 1890]