In this situation you see that your beat so you can just show one card and muck your hand, if you like you can show none of your cards.
If you had a better hand you must show both your cards to be eligible to win the pot, even if you only using one of them to beat him.
Now if you were the raiser and he was the caller you would have to show both your cards first.