You know there is a decent chance that he doesn't have that good of a hand. This is Party Poker. But it is really tempting. If he doesn't have an over pair (say he holds AK, AQ, 88) you are the favorite. I see people bet hands like that all the time. But I think the better long term play is to fold. If they were on a steal, I think it encourages them to try to steal again. Next time you call with a better hand. If they were betting AA, KK, etc, then it teaches them to slow down and the next time it is cheaper for you to see if you can flop trips.
You know that it is a bad play on their part. It is a -EV play. Anytime EV is given up by a player, an equaly and opposite amount of EV is picked up by the remaining players. It is hard to see in this situation how I am better off, but I think it must come down to the (rare) situation that somebody overbets the pot and you happen to be holding AA.