I don't think it was intentional in quite the way some are describing but I do think Kenny figured out prior to Newcastle actually that Andy was the kind of person who responds best to the stick.
Some people do better with some support, arm round the shoulder, knowing they are believed in. And Kenny tried this approach, he kept the faith for quite a while in the hope Andy would play himself into form.
Then he dropped him and subbed him in late and Andy played better and at that point he knew that Andy was more motivated by the stick, by being angry and by thinking 'fuck you' than he was by love and understanding.
So, it would be fair to say, that whilst I don't think Kenny specifically thought 'we'll humiliate him and it will do him the world of good", as Carroll got hooked off for tactical reasons - I also think Kenny made the call knowing that he didn't have to worry about the motivational affect on Andy, or the effect such a move would have on confidence. Because he'd already found out through trial an error Andy Carroll doesn't respond to warm fuzzy, arm around the shoulder, look after the confidence stuff, he responds to a great big boot up the arse.