Use "What were you doing last night" (during/at the time when I was trying to reach you)? This could imply either that you thought the person was out for the evening, or that the person knows that you tried to call. "What did you do last night" asks for a general report of the person's activities for the whole evening, or at least the highlights.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.