Coup
Do you have to name the role when you block?
The rulebook says a steal is blocked by claiming the Captain or the Ambassador.
Yes. A blocker must name the character they are claiming, such as the Captain or Ambassador for a steal, or the Contessa for an assassination. Saying only that you block is not enough. If the claim is challenged and you cannot show the card, you lose an influence.