How do you motivate the concept of a ring-theoretic ideal, and subsequently prime/maximal ideals, to a first-time ring theory student who has never seen these things before?
Let's say they just know the definition of a ring, and some common examples --- that's it. There's two ways I can think of:
Use divisibility and posets: Say that divisibility in $\mathbb{Z}$ and $\mathbb{C}[x]$ corresponds to the poset of principal ideals, so you can use that to motivate the definition of ideals in general. The maximal elements in the poset are like the prime numbers. You could use the property "$p|ab\implies p|a \text{ or } p|b$" to motivate the element-wise condition of prime ideals, and all this motivates the question "when is every prime ideal maximal?" You can also use polynomials and irreducibles as an example, to even further motivate the need for generality.
Use the First Isomorphism Theorem: Motivate homomorphisms first and explain that ideals are the kernels of (surjective) homomorphisms. You could say that the cases of domains/fields recover prime/maximal ideals.
Or I guess you could mix-and-match ideas from both points.
What other motivations are good for undergraduates learning about ideals for the first time? Is there a way to get at $\mathrm{Spec}(R)$, even when the audience only knows what an ideal is?