To extend the above answer from user1729, the subgroup membership problem is decidable for any Baumslag-Solitar group $BS(m,n)$, as they are all HNN-extensions $\mathbb{Z} \ast_{\mathbb{Z}}$, and so decidability follows by Theorem 1.1 of Foldings, graphs of groups and the membership problem, as $\mathbb{Z}$ is polycyclic-by-finite.
I think that the submonoid membership problem for Baumslag-Solitar groups is open in general. As mentioned in the comments, the problem of deciding membership in positively generated submonoids is decidable in $BS(m, n)$.
Note that as seen in the above answer, the problem of deciding membership in a finitely generated subgroup is sometimes called the generalized word problem, although this historically refers to the problem of deciding membership in one of the finitely many subgroups generated by subsets of the generating set, and so can occasionally cause confusion if the distinction is not made. For example, in $F_2 \times F_2$ one can decide membership in any subgroup generated by a subset of a generating set, but there are finitely generated subgroups of it for which membership is undecidable (a famous result due to Mikhailova).
Update 23 June 2020: A preprint appeared today, which claims that the rational subset membership problem is decidable for all solvable Baumslag-Solitar groups $BS(1, n)$. In particular, the submonoid membership problem is decidable for $BS(1, 2)$, as any f.g. submonoid is a rational subset.