If you cast this as a spell, you choose how many and which artifacts to devour as part of the resolution of the spell. (It can't be countered at this point.) The same is true of a spell or ability that lets you put a creature with devour artifact onto the battlefield.