The Magpies' striker condemned those who are accused of being responsible for the abuse during the preseason friendly against ADO Den Haag in the Netherlands on Saturday.
The Senegal international started the match alongside compatriot Papiss Cisse as well as Ivory Coast midfielder Cheick Tiote, who was visibly annoyed after the final whistle.
| THE GOAL.COM 50: POSITIONS 50-4
|Our definitive countdown of the finest players from 2011-12 has commenced. Click here to view our slideshow of the stars who ranked 50-4 in our list!|
"I did not hear it because I was focusing on the game," he told the Evening Chronicle. "If they do that they are really stupid dudes. They have to grow up."
The striker has taken part in Show Racism the Red Card events among other community work on Tyneside.
"People have to man up," he added. "There are many people on earth and you have to be responsible."
His appearance in the match came days after the expiry of a 7 million pound release clause in his contract on July 31.
Although the 27-year-old had insisted that he was happy at the club, the clause had previously contributed to speculation about a summer move.
Ba scored 16 league goals last season but bagged only one following a change of formation after Cisse was signed during the January transfer window.