Degenerate Primer

You can use trim-paired and follow the instructions in this tutorial (which shows the protocol for single-end reads, but should give you an idea how to use trim-paired).

Good luck!