Psych
Staring James Roday as Shawn Spencer as the psychic detective for the Santa Barbara Police Department and Dule Hill as Burton "Gus" Guster as Shawn's best friend and reluctant partner. The following bit is from Wikipedia:
"Flashbacks show that Henry Spencer assumed his son would follow in his footsteps and become a law enforcement officer. In preparation, Henry helps Shawn hone his powers of observation and deduction, often using games and challenges to test him.
Shawn originally becomes known as a psychic when, after calling in a tip on a crime covered on the news, the police become suspicious of his knowledge. Theorizing that such knowledge could only come from the inside, they are about to arrest him when he uses his observations to convince all present that he is psychic. The interim police chief warns Shawn that if his "powers" are fake, he will be prosecuted. With no choice but to keep up the act, he makes the most of it. Pretending to have psychic powers allows him to engage in strange and comic behavior as he turns real clues into hunches and otherworldly visitations. He enjoys teasing lifelong friend Gus, a pharmaceutical representative, over his eclectic interests (including a love for comic books and superheroes, spelling bees, astronomy, reality tv, his "super sniffer", and Spanish-language soap operas).
Head detective Lassiter doubts Shawn's psychic abilities and initially does not value his work, while junior detective O'Hara and chief Vick either fail to recognize that Shawn is a fake, or else are more willing to go along with the charade to solve cases. Henry Spencer and Shawn have a difficult relationship; still Henry helps Shawn on numerous occasions.
Some shots from season 1
Link to the Pysch Ebony & Ivory version here.
Official Site here.
P.S: Check out the "psych out moments" at the website.