Mr. Ramirez was named defense minister during the two-day long coup which temporarily deposed President Chavez .