It's slang that basically means "Just kidding! I tricked you!" Here are some other examples:
Person 1: Give me a high-five!
*Person 2 goes to give a high-five and person 1 moves his hand out of the way at the last second*
Person 1: Psych!
Person 1: Did you remember about our test in math today?
Person 2: I didn't know the test was today!
Person 1: Psych! It's next week.