It's an exclamation shouted right after stealing the basketball from the offense. It originated around 1991-1993 and was related to the cookie crisp commercial in which the cookie crook tried to steal cookies from the breakfast table while his dog sidekick screamed cooooooooookies.
-Chris Allen @ceeayy
COOKIES! Yo, you see him steal the ball from son.