It is derived from the Spanishword for 'thank you', gracias. It was popularized during the late 1980s and early 1990s by uprising underground rap artists from the areas of Long Island.
Jared: Would you mind helping me hold this?
Marvin: Yeah, sure
Jared: Grac, man