Literally, “do the cobra”. In reference to the way cobras react when they are attacked - by leaning backwards.
hacer la cobra (first-person singular present hago la cobra, first-person singular preterite hice la cobra, past participle hecho la cobra)