Because targets are chosen for activated abilities before costs (such as "Sacrifice an artifact") are paid, Goblin Engineer's second ability can't target the artifact that will be sacrificed to pay its cost.

Artwork
Loading artwork…
Goblin Engineer
The List · #MH1-128 · EN
Nonfoil—Foil—
Card rules
When this creature enters, you may search your library for an artifact card, put it into your graveyard, then shuffle.
,
, Sacrifice an artifact: Return target artifact card with mana value 3 or less from your graveyard to the battlefield.
1/2
Rare · Illustrated by Jehan Choo
Format legality
Brawl Legal
Commander Legal
Competitive Brawl Legal
Duel Legal
Gladiator Legal
Historic Legal
Legacy Legal
Modern Legal
Oathbreaker Legal
Penny Legal
Timeless Legal
Tlr Legal
Vintage Legal
Alchemy Not Legal
Future Not Legal
Old School Not Legal
Pauper Not Legal
Pauper Commander Not Legal
Pioneer Not Legal
PreDH Not Legal
Premodern Not Legal
Standard Not Legal
Standard Brawl Not Legal
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions
If a card in a player's graveyard has X in its mana cost, X is considered to be 0.