We should stress this is currently deep in the realms of rumour territory for now, with no confirmed word from Sega or Nintendo, so please take it with a rather large pinch of salt for the time being.
Here's the Tweet in question:
We've just had some shocking news from an inside source at Nintendo: Sonic will be a playable character in Mario Galaxy 2! Wha?
Cross your fingers, men.